//package cn.caofanqi.study.studyspringdatajpa.pojo.domain;
//
//import lombok.AllArgsConstructor;
//import lombok.Builder;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//
//import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
//import javax.persistence.Id;
//import javax.persistence.JoinColumn;
//import javax.persistence.ManyToOne;
//import javax.persistence.Table;
//
///**
// *  书籍-作者关联实体
// *  使用自己创建的中间实体和两个@OneToMany/@ManyToOne 替代 @ManyToMany
// *
// * @author caofanqi
// */
//@Data
//@Builder
//@Entity
//@Table(name = "jpa_book_author_relation")
//@NoArgsConstructor
//@AllArgsConstructor
//public class BookAuthor {
//
//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
//    private Long id;
//
//    @ManyToOne
//    @JoinColumn(name = "book_id",referencedColumnName = "id")
//    private Book book;
//
//    @ManyToOne
//    @JoinColumn(name = "author_id",referencedColumnName = "id")
//    private Author author;
//
//}
